// @author chenjw 
import axios from '../http';
import base from './base'; // 导入接口域名列表
import qs from 'qs'; // 根据需求是否导入qs模块

const sourceMaterial = {
		deleteSourceMaterial(params) {
			let param = qs.stringify(params);
			return axios.post(`${base.bd}/deleteSourceMaterial?${param}`);
		},
		findAllSourceMaterial(params) {
			let param = qs.stringify(params);
			return axios.post(`${base.bd}/findAllSourceMaterial/?${param}`);
		},
		findOneSourceMaterial(params) {
			let param = qs.stringify(params);
			return axios.post(`${base.bd}/findOneSourceMaterial?${param}`);
		},
		saveSourceMaterial(params) {
			return axios.post(`${base.bd}/saveSourceMaterial`,params);
		},
		updateSourceMaterial(params) {
			return axios.post(`${base.bd}/updateSourceMaterial`,params);
		}
		
}
export default sourceMaterial;